package com.yunji.common.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.base.BaseDO;
import com.yunji.common.enums.common.UserType;
import com.yunji.common.utils.bean.BeanUtils;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("tr_notice_user")
@NoArgsConstructor
public class NoticeUserDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String userType;
    private Long userId;
    private Long noticeId;
    private Integer readStatus;
    private Date readTime;
    private Integer status;

    public NoticeUserDO(String userType, Long userId, Long noticeId) {
        this.userType = userType;
        this.userId = userId;
        this.noticeId = noticeId;
    }
}
